<?php

class dz_mysql
{
    var $conf;

    function dz_mysql
    {
        $this -> conf = $conf;
    }
    function dbConnect()
    {
        $this -> conf['db_conn'] = mysql_connect($this -> conf['db_host'], $this -> conf['db_user'], $this -> conf['db_pass']) or die(mysql_error());
        mysql_select_db($this -> conf['db_data'], $this -> conf['db_conn']) or die(mysql_error());
        return true;
    }

    function dbClose()
    {
        mysql_close($this -> conf['db_conn']) or die(mysql_error());
        return true;
    }
}

?>

?>